<template>
  <div class="BrandView">
    <div class="itemHeader">
      <div class="title">
        <h3>热门品牌</h3>
        <span>国际经典 品质保证</span>
      </div>
      <span class="button">
        <a href="#" class="active">&lt;</a>
        <a href="#">&gt;</a>
      </span>
    </div>
    <div class="box">
      <ul>
        <li v-for="item in brandList" :key="item.id">
          <img :src="item.picture" alt="" />
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ["brandList"],
};
</script>

<style lang = "scss" scoped>
.BrandView {
  padding: 0 140px;
  background: #f5f5f5;
  .itemHeader {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    .title {
      display: flex;
      align-items: flex-end;
      h3 {
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
      }
      span {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
    .button {
      a {
        width: 20px;
        height: 20px;
        background: #ccc;
        color: #fff;
        display: inline-block;
        text-align: center;
        margin-left: 5px;
      }
      .active {
        background: #27ba9b;
      }
    }
  }
  .box {
    display: flex;
    width: 100%;
    height: 345px;
    overflow: hidden;
    padding-bottom: 40px;
    ul {
      width: 200%;
      display: flex;
      transition: all 1s;
      li {
        margin-right: 10px;
        width: 240px;
        img {
          width: 240px;
          height: 305px;
        }
      }
    }
  }
}
</style>